import webapp2
import logging
from controllers import mainh, adminh, ajaxh


logging.getLogger().setLevel(logging.DEBUG)


app = webapp2.WSGIApplication([
    ('/logout', adminh.LogoutHandler),
    # ('/a/ny', ajaxh.GetImagesAndCaptions),
    ('/a/recap', ajaxh.RecapHandler),
    ('/a/caption', ajaxh.AddCaptionHandler),
    ('/a/fav', ajaxh.AddFavHandler),
    ('/a/art-section', ajaxh.ArtSectionListHandler),
    ('/a/art-section/([^/]+)?', ajaxh.ArtSectionHandler),
    ('/admin/add-images', adminh.AddImagesHandler),
    ('/admin/delete-images', adminh.DeleteImagesHandler)

], debug=True)
